package com.neusoft.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 购物车
 *
 * @author Lucifer
 * @since 2021/5/16 14:36
 */
@Data
@ApiModel("购物车表-car")
public class Car implements Serializable {

    private static final long serialVersionUID = 3148176768559230877L;

    @TableId(type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty("总价（原价）")
    private double total;
    @ApiModelProperty("总价（活动价）")
    private double sale_total;
    @ApiModelProperty("购物车包含商品")
    @TableField(exist = false)
    private List<Item> items;


}

